<%@include file="/WEB-INF/pages/commons/commons.jsp"%>

<script type="text/javascript">
    $(document).ready(function(){
        $("#addMembership").click(function() {
            var form = this.form;
            form.submit();
        });
    });
</script>



        <fmt:message var="col_id" key="membership_table.jsp.col.id"/>
        <fmt:message var="col_username" key="membership_table.jsp.col.username"/>
        <fmt:message var="col_actions" key="membership_table.jsp.col.actions"/>

        <stripes:url var="url" beanclass="foo.bar.blog.web.action.registered.BlogsProfileActionBean" event="membership"/>
        <stripes:form beanclass="foo.bar.blog.web.action.registered.BlogsProfileActionBean">
        <input id="addMembership" type="button" value="<fmt:message key='membership_table.jsp.removeMembership'/>"/>
        <displaytag:table id="element2" name="actionBean.members.list" sort="external"
                          excludedParams="*"
                          defaultsort="1"
                          defaultorder="ascending"
                          requestURI="${url}"
                          style="width:100%;"
                          requestURIcontext="true" >
            <displaytag_el:column property="id" sortable="false" sortName="id" title="${col_id}"  />
            <displaytag_el:column property="username" sortable="false" sortName="name" title="${col_username}" />
            <displaytag_el:column title="${col_actions}">
                <input type="checkbox" name="toBeRemovedMembers" value="${element2.id}"/>
            </displaytag_el:column>
        </displaytag:table>
        <stripes:hidden name="membershipDelete" value=""/>
        <input type="hidden" name="blog" value="${actionBean.blog.id}"/>
        </stripes:form>

